﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeFile="MailSetting.aspx.cs" Inherits="GuanLi_MailSetting" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>邮件系统管理</title>
</head>
<body>
    <form id="form1" runat="server">
        <ext:PageManager ID="PageManager1" runat="server" AjaxLoadingType="mask" AutoSizePanelID="frmObject" />
        <ext:Form ID="frmObject" runat="server" Title="邮件系统管理" BodyPadding="5px" LabelAlign="right"
            FooterBarAlign="center" LabelWidth="140" AutoScroll="true" ShowHeader="false">
            <Rows>
                <ext:FormRow ID="FormRow1" runat="server">
                    <Items>
                        <ext:TextBox ID="txtSendEmail" runat="server" Label="发信人邮箱" MaxLength="255" Regex="^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$" Required="true" EmptyText="请填写发信人邮箱">
                        </ext:TextBox>
                    </Items>
                </ext:FormRow>
                <ext:FormRow ID="FormRow2" runat="server">
                    <Items>
                        <ext:TextBox ID="txtSendName" runat="server" Label="发信人名字" MaxLength="255" EmptyText="请填写发信人名字">
                        </ext:TextBox>
                    </Items>
                </ext:FormRow>
                <ext:FormRow ID="FormRow3" runat="server">
                    <Items>
                        <ext:TextBox ID="txtSMTP" runat="server" Label="SMTP服务器" MaxLength="255" Required="true" EmptyText="请正确填写SMTP服务器">
                        </ext:TextBox>
                    </Items>
                </ext:FormRow>
                <ext:FormRow ID="FormRow4" runat="server">
                    <Items>
                        <ext:NumberBox ID="txtPort" runat="server" Label="服务器端口号" Text="25" Required="true"
                            EmptyText="请正确填写SMTP服务器端口号">
                        </ext:NumberBox>
                    </Items>
                </ext:FormRow>
                <ext:FormRow ID="FormRow5" runat="server">
                    <Items>
                        <ext:TextBox ID="txtEmailUser" runat="server" Label="邮件帐户" MaxLength="255" Regex="^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$" Required="true" EmptyText="请填写有效的邮件帐户">
                        </ext:TextBox>
                    </Items>
                </ext:FormRow>
                <ext:FormRow ID="FormRow6" runat="server">
                    <Items>
                        <ext:TextBox ID="txtEmailPwd" runat="server" Label="邮件密码" MaxLength="20" TextMode="password" Required="true">
                        </ext:TextBox>
                    </Items>
                </ext:FormRow>
            </Rows>
            
            <Toolbars>
                <ext:Toolbar ID="tbButton" runat="server" Position="footer">
                    <Items>
                        <ext:Button ID="btnSubmit" runat="server" Text="信息保存" Icon="systemsave" ValidateForms="frmObject"
                            OnClick="btnSubmit_Click">
                        </ext:Button>
                        <ext:HiddenField ID="hfId" runat="server"></ext:HiddenField>
                        <ext:Button ID="btnReset" runat="server" Text="重 置" Icon="reload">
                        </ext:Button>
                    </Items>
                </ext:Toolbar>
            </Toolbars>            
        </ext:Form>
    </form>
</body>
</html>
